<template>
</template>

<script>
export default {
	data() {
		return {
			userInfo:{},
			dealerList: [{
				code:"000001",
				customer:"明辉定制酒",
				contact:"王明辉",
				contactphone:"13587519695",
				pagetitle:"明辉定制酒",
				buttonname:"明辉出品"
				
			},{
				code:"000002",
				customer:"潍坊壹立科技有限公司",
				contact:"康琼华",
				contactphone:"13843813875",
				pagetitle:"壹立定制酒",
				buttonname:"壹立"
				
			},{
				code:"000003",
				customer:"亿灿物流有限公司业务部",
				contact:"夏柔绚",
				contactphone:"13428813122",
				pagetitle:"亿灿定制酒",
				buttonname:"亿灿"
			},{
				code:"000004",
				customer:"州中诚展览服务有限公司",
				contact:"钟小瑜",
				contactphone:"17085497152",
				pagetitle:"州中诚定制酒",
				buttonname:"州中诚"
			}],
		};
	},
	onLoad(options) {
		let that = this;
		that.userInfo=JSON.parse(uni.getStorageSync("userInfo")==''?null:uni.getStorageSync("userInfo"));
		
		
		that.jump('/pages/app/dealer/index',{code:that.userInfo.OrgCode});
		// uni.request({
		//     url: this.$config.API_URL+"Distribute/GetDistributeList",
		// 	method:"POST",
		// 	data:{
		// 		"storeid":that.userInfo.StoreUserInfo.StoreId
		// 	},
		// 	success: (result) => {	
		// 		console.log(result.data);
		// 		that.dealerList=result.data;
				
		// 		uni.request({
		// 		    url: that.$config.API_URL+"Distribute/GetDistributeCodeByUid",
		// 			method:"POST",
		// 			data:{
		// 				"uid":that.$route.query.uid
		// 			},
		// 			success: (result) => {					
		// 				that.userInfo = result.data[0];
		// 				let f=that.dealerList.find(x=>x.Code==that.userInfo.distributercode);
		// 				that.jump('/pages/app/dealer/index',{code:f.Code});
		// 			},
		// 		})
				
				
		// 	},
		// })
		
		
		
		
		
		
	},
	mounted() {
		
	},
	onShow() {
	
	},
	methods: {
		jump(path, parmas) {
			this.$Router.push({
				path: path,
				query: parmas
			});
		},
	}
};
</script>

<style lang="scss">
// 标题搜索栏
.active {
	// 动画时间跟随轮播组件动画时间
	transition: all linear 0.5s;
}
// 服务协议
.modal-wrap {
	/deep/ .cu-modal {
		z-index: 99999;
	}
}
.service-contract-wrap {
	background-color: #fff;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: 610rpx;
	min-height: 850rpx;
	border-radius: 20rpx;

	.service-title {
		font-size: 35rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: rgba(255, 255, 255, 1);
		line-height: 42rpx;
		background: linear-gradient(180deg, rgba(62, 48, 25, 1) 0%, rgba(109, 80, 40, 1) 100%);
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		margin-bottom: 30rpx;
	}
	.service-content {
		text-align: left;
		font-size: 26rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: rgba(102, 102, 102, 1);
		line-height: 50rpx;
		padding: 0 40rpx;
	}
	.service-tip {
		text-align: left;
		font-size: 26rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: rgba(154, 154, 154, 1);
		line-height: 50rpx;
		padding: 0 40rpx;
	}
	.btn-box {
		padding: 40rpx;
		.cancel-btn {
			width: 248rpx;
			height: 70rpx;
			border: 1rpx solid rgba(234, 182, 99, 1);
			border-radius: 35rpx;
			font-size: 28rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: rgba(234, 182, 99, 1);
			background-color: #fff;
		}
		.agree-btn {
			width: 300rpx;
			height: 70rpx;
			background: linear-gradient(90deg, rgba(233, 181, 97, 1), rgba(238, 204, 138, 1));
			border-radius: 35rpx;
			font-size: 28rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: rgba(255, 255, 255, 1);
		}
	}
	.ic-hide {
		position: absolute;
		font-size: 50rpx;
		bottom: -100rpx;
		z-index: 11;
		color: #fff;
		left: 50%;
		transform: translateX(-50%);
	}
}

.head_box {
	width: 750rpx;
	// background: #fff;
	transition: all linear 0.3s;

	/deep/.cuIcon-back {
		display: none;
	}

	.nav-title {
		font-size: 38rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #fff;
	}
}
</style>
